<?php
$config['Category'] = array(
	'root_id'	=>	null
);

$config['EditablePage'] = array(
	'upload'	=>	array(
		'AttachTypeAllowed'	=>	'jpg,gif,jpeg,png'
	),
	'thumbnail'	=>	array(
		'thumbnail'		=>	true,
		'width'			=>	0,
		'height'		=>	120,
		'percent'		=>	0,
		'path'			=>	WWW_ROOT.'files/editable_pages/',
		'uri'			=>	'files/editable_pages/',
	),
	'image'		=>	array(
		'show'			=>	true,
		'autoResize'	=>	false,
		'path'			=>	WWW_ROOT.'files/editable_pages/',
		'uri'			=>	'files/editable_pages/',
		//resize
		'width'			=>	800,
		'height'		=>	600,
		'percent'		=>	0
	),
	'content'	=>	array(
		'show'	=>	true,
		"default_content"	=>	""
	),
	'description'	=>	array(
		'show'	=>	true,
		'default_content'	=>	""
	),
	'description_config'	=>	array(
		'uiColor'	=>'#97da7f',
		'toolbar'	=>	"[
	                  ['Preview','Source'],
	                  ['Bold','Italic','Strike'],
	                  ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
	                  ['Link','Unlink','Anchor'],
	                  ['FontSize','TextColor','BGColor'],
	              ]",
		'height'	=>	"130px",
		'width'		=>	"550px",
		"resize_enabled"	=>	false
	),
	'content_config'	=>	array(
		'uiColor'=>'#97da7f',
		"resize_enabled"	=>	false
	),
	'extended_categories'	=>	array(
//		array(
//			'title'		=>	__("Khách sạn tiêu biểu", true),
//			'model'		=>	'categories.Category',
//			'root_id'	=>	139,
//			'id'		=>	'cat_top_hotels'
//		),
		//title => category_id
		//"Chọn hãng sản xuất"	=>	21
	),
	'global'			=>	array(
		"module_name"	=>	__("page", true)
	),
	'text'		=>	array(
		'major_name'		=>	"Page",
		'edit_page_title'	=>	"Update Page Information",
		'add_page_title'	=>	"Add New Page",
		'index_page_title'	=>	"List of Pages",
		'submit_edit_button'	=>	"Update Page",
		'submit_add_button'	=>	"Add New Page",
		'add_page_link'	=>	"Add New Page",
	),
	'order'		=>	array(
		'orderable'	=> true,
		'direction'	=> 'desc',
		'defaultSortField'	=>	'priority desc'
	)
);

$config['RelatedImages'] = array(
	'isActive'	=>	true,
	'model'		=>	'EditablePage',
	'thumbnail'	=>	array(
		'thumbnail'		=>	true,
		'width'			=>	160,
		'height'		=>	0,
		'percent'		=>	0,
		'path'			=>	WWW_ROOT.'files/hotel_images/',
		'uri'			=>	'files/hotel_images/'
	),
	'image'		=>	array(
		'autoResize'	=>	true,
		'path'			=>	WWW_ROOT.'files/hotel_images/',
		'uri'			=>	'files/hotel_images/',
		'width'			=>	800,
		'height'		=>	0,
		'percent'		=>	0,
	)
);

# ------------------------------------------------------------------
# Related Pages
//$config['RelatedPages'] = array(
//	'Information' => array(
//		'label'	=>	__("Information", true),
//		'limit'	=>	10,
//		'orderable'		=>	true,
//		'plugin'		=>	'hotels',
//		'controller'	=>	'manage_hotel_features',
//		'model'	=>	'EditablePage',
//		'config_dir'	=>	'hotels',
//		'config_group_dir'	=>	'editable_pages',
//		'config_cache_name'	=>	'hotels_configs',
//		'config_group_cache_name'	=>	'editable_page_config'
//	),
//);

$config['Themes'] = array(
	'manage'		=> 'go_admin',
	'edit_content'	=> 'go_admin',
);

# ------------------------------------------------------------------
# View
$config['View'] = array(
	'type'			=>	'details', // list, details, thumbnail
	'limit'			=>	30,
	'details'		=>	array(
		'show_image'	=>	false,
	),
	'thumbnail'		=>	array(
		'has_thumbnail'	=>	true
	)
);


# ------------------------------------------------------------------
$config['ExtraFields'] = array(
//	'ExtraHotelField' => array(
//		'model'	=>	'ExtraHotelField'
//	)
);

# ------------------------------------------------------------------
# Manage
$config['Manage'] = array(
	'edit'	=>	array(
		'show_alias'	=>	true,
		'custom_css'	=>	''
	),
	'add'	=>	array(
		'show_alias'	=>	true
	)
);
?>